import request from "@/request/index.js"

// 获取库存列表
export function getStockList(params) {
  return request({
    url: '/officesupplies/officeSupplies/listStock',
    method: 'get',
    params
  })
}

// 获取库存详情
export function getStockDetail(id) {
  return request({
    url: `/officesupplies/officeSupplies/getStockDetail/${id}`,
    method: 'get'
  })
}

// 获取类型列表
export function getCategoryList(params) {
  return request({
    url: '/officesupplies/officeSupplies/listCategory',
    method: 'get',
    params
  })
}